﻿<script type="text/html" id="searchTemplate">
    <div class="search ">
        <input type="text" class="form-control fl" id="txtSearch" />
<button type="button" class="fl sure" id="btnSearchTree"><img src="../../../bfs/component/treeList/images/search.png"/> </button>
    </div>	
	<div class="pop-r" id='noTreeData' style="position: absolute;color: #e45050;z-index: 999;left: 90px;top: 40px;padding: 3px;border-radius: 4px;display: none;">
			<span>暂无数据!</span>
	</div>
    <!--�����������ʼ-->
    {{if rows}}
     {{if rows.length>1 }}
         {{if defaults.stationTypeMulit==true}}
            <div class="row" style=" margin-top:5px;">
                <ul class="col-sm-12 checkGroup">
                    {{each rows as value i}}
                    <li>
                        <label class="checkbox-inline">
                            <input type="checkbox" name="chkStationType" value="{{value.StationTypeId}}"><span class="icon glyphicon glyphicon-leaf"></span>&nbsp;{{value.StationTypeFunName}}
                        </label>
                    </li>
                    {{/each}}
                    <li>
                        <label class="checkbox-inline">
                            <input type="checkbox" id="chk_all" value="all"><span class="icon"><i class="glyphicon glyphicon-th"></i></span>&nbsp;ȫ��
                        </label>
                    </li>
                </ul>
            </div>
            {{else}}
                <div class="row" style=" margin-top:5px;">
                    <ul class="col-sm-12 checkGroup">
                        {{each rows as value i}}
                        <li>
                            <label class="radio-inline">
                                <input type="radio" name="radStationType" value="{{value.StationTypeId}}" {{if i==0}}checked="checked"{{/if}}><span class="icon glyphicon glyphicon-leaf"></span>&nbsp;{{value.StationTypeFunName}}
                            </label>
                        </li>
                        {{/each}}                       
                    </ul>
                </div>
            {{/if}}
        {{/if}}
      {{/if}}
    <!--��������������-->
<div class="checkAlarm" style="display:none;">
				<form class="form-inline condition-box on fl menu-tab" id="showall" style="margin-left: 50px;">
					<div class="marlf10 fl" style=" margin-left:2px;width:58px;">
						<label style="padding-top:5px; color:#fff;">查看全部</label>
					</div>
				</form>
			<form class="form-inline condition-box  fl menu-tab" id="showalarm" >
					<div class="fl" style="width:58px;">
						<label style="padding-top:5px; color:#333;">只看告警</label>
					</div>
				</form>
</div>
</script>
<script type="text/html" id="treeListTemplate">
    <!--����������ʼ-->
    <ul class="nav1">
        {{each treeData as value i}} {{if (value.children&&value.children.length>0)}}
        <li class="navtop" name="navtop">
            <a data-nodeid="{{value.id}}" href="javascript:void(0);">
              {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree1Level"/>
                              {{/if}} {{value.text}}</a>
            <!--�ڶ�����ʼ-->
            <ul>
                {{each value.children as value i}} {{if (value.children&&value.children.length>0)}}
                <li class="nav2bg" name="nav2bg"><a data-nodeid="{{value.id}}" href="javascript:void(0);">
                             {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree2Level"/>
                             {{/if}} 
                    {{value.text}}</a>
                    <!--��������ʼ-->
                    <ul>
                        {{each value.children as value i}} {{if (value.children&&value.children.length>0)}}
 							<li class="nav3bg" name="nav3bg"><a data-nodeid="{{value.id}}" href="javascript:void(0);">
                             {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree3Level"/>
                             {{/if}} 
                    			{{value.text}}</a>
            <ul>
                {{each value.children as value i}} {{if (value.children&&value.children.length>0)}}
                <li class="nav4bg" name="nav4bg"><a data-nodeid="{{value.id}}" href="javascript:void(0);">
                             {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree4Level"/>
                             {{/if}} 
                    {{value.text}}</a>
                    <!--��������ʼ-->
                    <ul>
                        {{each value.children as value i}} 
 							<li class="nav5bg leaf {{value.state=='open'?'active':''}}" name="nav5bg"><a data-nodeid="{{value.id}}" href="javascript:void(0);">
                             {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree5Level"/>
                             {{/if}} 
                    			{{value.text}}</a>
					</li>					 
                        {{/each}}
                    </ul>
                    <!--����������-->
                </li>
                {{else}}
					{{if (value.type!=null&&value.type!='')}}
                	<li class="nav4bg leaf {{value.state=='open'?'active':''}}" name="nav4bg" title="{{value.text}}">
						<a data-nodeid="{{value.id}}" href="javascript:void(0);">
							  {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree4Level"/>
                              {{/if}} 
                             {{value.text}} 
						</a>
					</li>
					{{/if}}
                {{/if}} {{/each}}
            </ul>
					</li>
					 {{else}}
						{{if (value.type!=null&&value.type!='')}}
                        <li class="nav3bg leaf {{value.state=='open'?'active':''}}" name="nav3bg" title="{{value.text}}">
                            <a data-nodeid="{{value.id}}" href="javascript:void(0);">
                              {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree3Level"/>
                              {{/if}} 
                             {{value.text}}
                            </a>
                        </li>
						 {{/if}}  {{/if}} 
                        {{/each}}
                    </ul>
                    <!--����������-->
                </li>
                {{else}}
					{{if (value.type!=null&&value.type!='')}}
                	<li class="nav2bg leaf {{value.state=='open'?'active':''}}" name="nav2bg" title="{{value.text}}">
						<a data-nodeid="{{value.id}}" href="javascript:void(0);">
							  {{if defaults.mulitCheck==true}}
                               <input type="checkbox" class="ckbox" name="chkTree2Level"/>
                              {{/if}} 
                             {{value.text}} 
						</a>
					</li>
					{{/if}}
                {{/if}} {{/each}}
            </ul>
            <!--�ڶ�������-->
        </li>
        {{/if}} {{/each}}
    </ul>
    <!--����������ʼ-->
</script>
<script type="text/html" id="treeListAlarmTemplate">
    <!--����������ʼ(�����澯��Ϣ)-->
    <ul class="nav1">
        {{each treeData as value i}} {{if (value.Children)}}
        <li class="navtop">
            <a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
            <!--�ڶ�����ʼ-->
            <ul>
                {{each value.Children as value i}} {{if (value.Children)}}
                <li class="nav2bg"><a data-nodeid="{{value.Id}}" href="#">
                    {{value.Text}}</a>
                    <!--��������ʼ-->
                    <ul>
                        {{each value.Children as value i}} 
                        {{if (value.Children)}}
                        <li class="nav2bg"><a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
                            <!--���ļ���ʼ-->
                            <ul>
                                {{each value.Children as value i}}
                                <li class="nav3bg {{value.State=='open'?'active':''}}" title="{{value.Text}}">
                                    <a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
                                    {{if value.DataType==0}}
                                          <div class="dw">{{value.Remark}}</div>
                                     {{/if}} 
                                </li>
                                {{/each}}
                            </ul>
                            <!--���ļ�����-->

                             {{else}}
                            <li class="nav3bg {{value.State=='open'?'active':''}}" title="{{value.Text}}">
                                <a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a> 
                                {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} 
                            </li>
                              {{/if}} {{/each}}
                    </ul>
                    <!--����������-->
                    </li>
                    {{else}}
                    <li class="nav2bg {{value.State=='open'?'active':''}}" title="{{value.Text}}"><a data-nodeid="{{value.Id}}" href="#">
                             {{value.Text}}</a> {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} </li>
                    {{/if}} {{/each}}
            </ul>
            <!--�ڶ�������-->
            </li>
            {{else}}
            <li class="nav2bg {{value.State=='open'?'active':''}}" title="{{value.Text}}"><a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a> 
            {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} </li>
            {{/if}} {{/each}}
    </ul>
    <!--����������ʼ-->
</script>
<script type="text/html" id="menuListAlarmTemplate">
    <!--�˵�������ʼ(�����澯��Ϣ)-->
    <ul class="nav1">
        {{each treeData as value i}} {{if (value.Children)}}
        <li class="navtop">
            <a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
            <!--�ڶ�����ʼ-->
            <ul>
                {{each value.Children as value i}} {{if (value.Children)}}
                <li class="nav2bg"><a data-nodeid="{{value.Id}}" href="#">
                    {{value.Text}}</a>
                    <!--��������ʼ-->
                    <ul>
                        {{each value.Children as value i}} 
                        {{if (value.Children)}}
                        <li class="nav2bg"><a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
                            <!--���ļ���ʼ-->
                            <ul>
                                {{each value.Children as value i}}
                                <li class="nav3bg {{value.State=='open'?'active':''}}" title="{{value.Text}}">
                                    <a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a>
                                    {{if value.DataType==0}}
                                          <div class="dw">{{value.Remark}}</div>
                                     {{/if}} 
                                </li>
                                {{/each}}
                            </ul>
                            <!--���ļ�����-->

                             {{else}}
                            <li class="nav3bg {{value.State=='open'?'active':''}}" title="{{value.Text}}">
                                <a data-nodeid="{{value.Id}}" data-linkUrl="{{value.LinkUrl}}" href="#">{{value.Text}}</a> 
                                {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} 
                            </li>
                              {{/if}} {{/each}}
                    </ul>
                    <!--����������-->
                    </li>
                    {{else}}
                    <li class="nav2bg {{value.State=='open'?'active':''}}" title="{{value.Text}}"><a data-nodeid="{{value.Id}}" href="#">
                             {{value.Text}}</a> {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} </li>
                    {{/if}} {{/each}}
            </ul>
            <!--�ڶ�������-->
            </li>
            {{else}}
            <li class="nav2bg {{value.State=='open'?'active':''}}" title="{{value.Text}}"><a data-nodeid="{{value.Id}}" href="#">{{value.Text}}</a> 
            {{if value.DataType==0}}
                                <div class="dw">{{value.Remark}}</div>
                            {{/if}} </li>
            {{/if}} {{/each}}
    </ul>
    <!--�˵�������ʼ-->
</script>
